<!DOCTYPE html>
<html>
    <head>
        <!-- Title -->
        <title>Modern | Login - Sign in</title>
        <meta content="width=device-width, initial-scale=1" name="viewport"/>
        <meta charset="UTF-8">
        <meta name="description" content="Admin Dashboard Template" />
        <meta name="keywords" content="admin,dashboard" />
        <meta name="author" content="Steelcoders" />
        <!-- Styles -->
        <link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <!-- Theme Styles -->
        <link href="assets/css/modern.min.css" rel="stylesheet" type="text/css"/>
        <link href="assets/css/themes/green.css" class="theme-color" rel="stylesheet" type="text/css"/>
        <link href="assets/css/custom.css" rel="stylesheet" type="text/css"/>
        <script src="assets/plugins/jquery/jquery-2.1.4.min.js"></script>
        <script src="assets/plugins/jquery-ui/jquery-ui.min.js"></script>
        <script src="https://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
        <script type="text/javascript" charset="utf-8" src="assets/js/login.js"></script>
    </head>
    <body class="page-login">
        <main class="page-content">
            <div class="page-inner">
                <div id="main-wrapper">
                    <div class="row">
                        <div class="col-md-3 center">
                            <div class="login-box">
                                <a href="information-list.html" class="logo-name ">
                                </a>
                                <form class="m-t-md" action="" method="post">
                                    <div class="form-group">
                                        <input type="text" class="form-control" placeholder="用户名" id="name" />
                                    </div>
                                    <div class="form-group">
                                        <input type="password" class="form-control" placeholder="密码" id="password" />
                                    </div>
                                    <input type="" class="btn  btn-block btn-info" id="btn" onclick="tijiao()" value="登陆" />
                                </form>
                            </div>
                        </div>
                    </div><!-- Row -->
                </div><!-- Main Wrapper -->
            </div><!-- Page Inner -->
        </main><!-- Page Content -->

        <!--<script>
            $("#btn").click(function () {
                var name = $("#name").val();
                var password = $("#password").val();
                var reqData = {};
                reqData.loginId = name;
                reqData.pass = password;
                //window.location.href="information-list.html";
                $.ajax({
                    type: 'post',
                    url: "/auth/login",
                    contentType: 'application/json;charset=utf-8',
                    data:JSON.stringify(reqData),
                    success: function(data){    //请求成功时的回调函数
                        if(data.code == "1"){
                            document.cookie = "name="+JSON.stringify(data.data);
                            window.location.href="/main-page";
                        }else{
                            alert(data.msg + data.data);
                        }
                    },
                });
            });
        </script>-->
    </body>
</html>